import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
import en_translation from './modules/en.json'
import zh_translation from './modules/zh.json'

i18n.use(initReactI18next).init({
  resources: {
    en: {
      translation: en_translation
    },
    zh: {
      translation: zh_translation
    }
  },
  lng: 'zh',
  debug: false,
  interpolation: {
    escapeValue: false // not needed for react as it escapes by default
  }
})

export default i18n
